package com.pinyougou.sellergoods.service;


import com.pinyougou.pojo.TbBrand;
import entity.PageResult;
import java.util.List;

public interface BrandService {
    /** 
    * @Description: 测试 
    * @Param: [name] 
    * @return: java.lang.String 
    * @Author: Chen
    * @Date: 2019/9/30 
    */
    String say(String name);
    
    /** 
    * @Description: 查询 
    * @Param: [] 
    * @return: java.util.List<com.pinyougou.pojo.TbBrand> 
    * @Author: Chen
    * @Date: 2019/9/30 
    */
    List<TbBrand> findAll();

    /** f
    * @Description:  
    * @Param: [pageNum, pageSize] 分页
    * @return: entity.PageResult 
    * @Author: Chen
    * @Date: 2019/9/30 
    */
    PageResult findpage(int pageNum,int pageSize);

    /** 
    * @Description: 添加 
    * @Param: [tbBrand] 
    * @return: void 
    * @Author: Chen
    * @Date: 2019/10/1 
    */
    void add(TbBrand tbBrand);
    
    /** 
    * @Description: 修改 + 查询
    * @Param: [tbBrand] 
    * @return: void 
    * @Author: Chen
    * @Date: 2019/10/1 
    */
    TbBrand findOne(long id);

    void update(TbBrand tbBrand);

    /**
    * @Description: 删除
    * @Param: [id]
    * @return: void
    * @Author: Chen
    * @Date: 2019/10/1
    */
    void delete(long[] ids);

    /** 
    * @Description: 条件查询 
    * @Param: [tbBrand, pageNum, pageSize] 
    * @return: entity.PageResult 
    * @Author: Chen
    * @Date: 2019/10/3 
    */
    PageResult findpage(TbBrand tbBrand,int pageNum,int pageSize);
}
